﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RapChieuPhim.DTO;
using RapChieuPhim.DAO;
using System.Collections;

namespace RapChieuPhim.BUS
{
    class NguoiDatBUS
    {
        public static NguoiDatDTO GetByID(string id)
        {
            NguoiDatDAO ndDAO = new NguoiDatDAO();
            return ndDAO.GetByID(id);
        }

        public static IList GetAll()
        {
            NguoiDatDAO ndDAO = new NguoiDatDAO();
            return ndDAO.GetAll();
        }

        public static void Insert(NguoiDatDTO NguoiDat)
        {
            NguoiDatDAO ndDAO = new NguoiDatDAO();
            ndDAO.Insert(NguoiDat);
        }

        public static void Update(NguoiDatDTO NguoiDat)
        {
            NguoiDatDAO ndDAO = new NguoiDatDAO();
            ndDAO.Update(NguoiDat);
        }

        public static void Delete(string id)
        {
            NguoiDatDAO ndDAO = new NguoiDatDAO();
            ndDAO.Delete(id);
        }
    }
}
